package cn.lhf.cd.entity;

import cn.lhf.cd.domain.RecordType;

import java.math.BigDecimal;
import java.sql.Timestamp;

public class Record {
    private Integer id;             //唯一编号
    private Integer srcUserId;      //操作用户
    private Timestamp time;         //时间
    private BigDecimal money;       //涉及金额
    private RecordType type;        //流水类型
    private Integer dstUserId;      //目标用户，转帐用

    public Record() {   //没有无参构造，mybatis会报错
    }

    public Record(Integer srcUserId, BigDecimal money, RecordType type, Integer dstUserId) {
        this.srcUserId = srcUserId;
        this.money = money;
        this.type = type;
        this.dstUserId = dstUserId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSrcUserId() {
        return srcUserId;
    }

    public void setSrcUserId(Integer srcUserId) {
        this.srcUserId = srcUserId;
    }

    public Timestamp getTime() {
        return time;
    }

    public void setTime(Timestamp time) {
        this.time = time;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public RecordType getType() {
        return type;
    }

    public void setType(RecordType type) {
        this.type = type;
    }

    public Integer getDstUserId() {
        return dstUserId;
    }

    public void setDstUserId(Integer dstUserId) {
        this.dstUserId = dstUserId;
    }

}
